home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 42
/
Amiga Format AFCD42 (Issue 126, Aug 1999).iso
/
-serious-
/
programming
/
arexx
/
rxasl
/
install
< prev
next >
Wrap
Text File
|
1999-05-17
|
2KB
|
84 lines
; $VER: InstallRxAsl
(procedure choose
(set what
(askoptions
(prompt "What do you want to install?"
(help "Choose what you want to install")
(choices "rxasl.library" "guide" "examples")
)
)
)
)
(procedure selGuideDest
(set #installGuideDir
(askdir
(prompt "Select the directory where you want to "
"install rxasl.library guide")
(help "This will install the guide")
(default "Ram Disk:")
)
)
)
(procedure selExDest
(set #installExDir
(askdir
(prompt "Select the directory where you want to "
"install rxasl.library examples")
(help "This will install the examples")
(default "Ram Disk:")
)
)
)
(procedure copy-lib
(copylib
(prompt "Installing rxasl.library to LIBS:" )
(help "This will copy rxasl.library to LIBS:")
(source (tackon #source-dir "LIBS/rxasl.library"))
(dest @default-dest)
(confirm)
(optional "askuser" "force")
)
)
(procedure copy-guide
(selGuideDest)
(copyfiles
(source (tackon #source-dir "DOCS/english/"))
(dest #installGuideDir)
(optional force)
(all)
)
)
(procedure copy-ex
(selExDest)
(copyfiles
(source (tackon #source-dir "examples"))
(dest #installExDir)
(optional force)
(all)
)
)
(welcome "Welcome to the rxasl.library installation.\n")
(set @app-name "rxasl.library")
(set @default-dest "LIBS:")
(set #source-dir (if (= 1 (exists @icon)) (pathonly (expandpath @icon))
(expandpath @icon))
)
(complete 0)
(choose)
(if (= 0 what) (exit))
(if (BITAND what 1) (copy-lib))
(complete 33)
(if (BITAND what 2) (copy-guide))
(complete 50)
(if (BITAND what 4) (copy-ex))
(complete 100)